/**
 * 项目示例-列表综合搜索
 * Date 2023-5-25 09:33:56
 */
import type { FilterItem } from '@/components/FilterBar/types'

export const askOptions: FilterItem[] = [
  // 查询条件
  {
    label: '项目编号:',
    prop: 'askContent',
    type: 'input',
    span: 8,
    inputProps: {
      size: 'large',
      placeholder: '请输入项目编号'
    }
  },
  {
    label: '项目名称:',
    prop: 'askContent',
    type: 'input',
    span: 8,
    inputProps: {
      size: 'large',
      placeholder: '请输入项目名称'
    }
  },
  {
    label: '项目单位:',
    prop: 'askContent',
    type: 'input',
    span: 8,
    inputProps: {
      size: 'large',
      placeholder: '请输入项目单位'
    }
  },
  {
    label: '项目负责人:',
    prop: 'askContent',
    type: 'input',
    span: 8,
    inputProps: {
      size: 'large',
      placeholder: '请输入项目负责人'
    }
  },
  {
    label: '航站楼:', // 后续由接口获取下拉数据
    prop: 'regions',
    type: 'checkbox',
    span: 8,
    defaultValue: [],
    inputProps: {
      showCheckAll: true,
      options: [
        { label: 'T3航站楼', value: "24", },
        { label: 'T5航站楼', value: "12" },
      ]
    },
    events: {
      change: (value: any, evt: any) => {
      }
    }
  },
  {
    label: '涉及作业:',
    prop: 'askContent',
    type: 'input',
    span: 8,
    inputProps: {
      size: 'large',
      placeholder: '请输入涉及作业'
    }
  },
  {
    label: '申请时间:',
    prop: 'date1',
    type: 'datePicker',
    span: 8,
    defaultValue: [],
    inputProps: {
      type: 'daterange',
      'value-format': 'YYYY-MM-DD hh:mm',
      'start-placeholder': '开始时间',
      'end-placeholder': '结束时间',
      'range-separator': '至'
    }
  },
  {
    label: '项目类型:', // 后续由接口获取下拉数据
    prop: 'sss',
    type: 'checkbox',
    span: 12,
    defaultValue: [],
    inputProps: {
      showCheckAll: true,
      options: [
        { label: '全部', value: "24", alert: true },
        { label: '已立项项目', value: "10", },
        { label: '临时施工', value: "12" },
        { label: '维修施工', value: "2" },
      ]
    },
    events: {
      change: (value: any, evt: any) => {
      }
    }
  },
]
